package com.lagou.edu.mvcframework.interceptor;

import com.lagou.edu.mvcframework.pojo.LogouModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 拦截器接口
 */
public interface LagouHandlerInterceptor {

     boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;


     void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, LogouModelAndView modelAndView) throws Exception;


     void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,Exception ex) throws Exception;
}
